package com.example.demo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "custom")
public class CustomConfig {

    private String message;

    private Map<String, String> db = new HashMap<>();
    // Getter and setter

    public Map<String, String> getDb() {
        return db;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}

